import {
  system as http,
  application as applicationHttp
} from '@zh/common-utils/http'
export { http }

/**
 * 分页查询
 * @param {Object} params
 */
export function page(params) {
  return http.post('/system/sysBusinessLine/page', params)
}
/**
 * 机构下拉树（全量加载）
 * @param {*}
 * @returns
 */
export function unituser(param) {
  return http.post('/system/sysBusinessLine/getUnitUsertree', param)
}

/**
 * 机构下拉树（部分加载）
 * @param {*}
 * @returns
 */
export function unituser1(param) {
  return http.post('/system/sysBusinessLine/getUnitUsertree1', param)
}
/**
 * 保存
 * @param {Object} params
 */
export function save(params) {
  return http.post('/system/sysBusinessLine/save', params)
}

/**
 * 获取详情
 * @param {Object} params
 */
export function getById(params) {
  return http.post('/system/sysBusinessLine/getById', params)
}

/**
 * 修改
 * @param {Object} params
 */
export function update(params) {
  return http.post('/system/sysBusinessLine/update', params)
}

/**
 * 删除
 * @param {Object} params
 */
export function del(params) {
  return http.post('/system/sysBusinessLine/del', params)
}
